package cn.cs.service;


import cn.cs.common.Dto;
import cn.cs.common.Page;
import cn.cs.pojo.Complaint;
import cn.cs.pojo.CsPerson;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ComplaintService {

    public Complaint getComplaintById(String id)throws Exception;

    public List<Complaint> getComplaintByPhone(String userId)throws Exception;

    public List<Complaint> getComplaintListByMap(Map<String, Object> param)throws Exception;

    public Integer getComplaintCountByMap(Map<String, Object> param)throws Exception;

    public Integer itriptxAddComplaint(Complaint complaint)throws Exception;

    public Integer itriptxModifyComplaint(Complaint complaint)throws Exception;

    public Integer itriptxDeleteComplaintById(Long id)throws Exception;

    public Page<Complaint> queryComplaintPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    public Dto registerComplaint(HttpServletRequest request, String clientUserId, String title, String content, String createTime)throws Exception;

    public Map<String, Object> getAgentByRepairUserId(String id) throws Exception;

    public Map<String, Object> getAgentABByRepairUserId(String id) throws Exception;

    public Map<String, Object> getAgentABByOrderId(String id) throws Exception;

    public Map<String, Object> getAgentABByAppOrderId(String id) throws Exception;
}
